package com.atguigu.educenter;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author He Wentao
 * @since 2022/9/18 16:25
 */

@SpringBootApplication
@ComponentScan("com.atguigu")
// 为了不在每一个 mapper 类上加 @mapper 注解，这里使用统一扫描
@MapperScan("com.atguigu.educenter.mapper")
@EnableDiscoveryClient  //nacos服务发现注解
@EnableFeignClients // 开启OpenFeign功能
public class UcenterApplication {
    public static void main(String[] args) {
        SpringApplication.run(UcenterApplication.class,args);
    }

}
